package 依赖倒转;

import java.time.Period;

public class Client {
    public static void main(String[] args) {
        Person person=new Person();
        person.receive(new Email());
        person.receive(new Weixin());
    }
}
